package br.uece.laconi.tac.strategy;

import se.sics.tac.aw.Bid;
import se.sics.tac.aw.Quote;
import se.sics.tac.aw.TACAgent;

public class HotelKnowledge {
	private float[] prices;
	private Quote lastQuote;
	
	public HotelKnowledge() {
		prices = new float[TACAgent.getAuctionNo()];
	}
	
	public void update(Bid bid) {
		prices[bid.getAuction()] = bid.getPrice(bid.getNoBidPoints());
	}
	
	public void update(Quote quote) {
		lastQuote = quote;
	}
	/*
	public void setPrice(int auction, float price) {
		prices[auction] = price;
	}
	*/
	public float getPrice(int auction) {
		return prices[auction];
	}
	
	public Quote getLastQuote() {
		return lastQuote;
	}
}
